package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Builder
@Data
@Accessors(chain = true)
@TableName("send_message_log")
@ApiModel(value="发送短信记录表", description="发送短信记录表")
public class SendMessageLog {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "UUID", hidden = true)
    private String id;

    @ApiModelProperty(value = "项目ID", required = true)
    @NotNull(message = "项目ID不能为空")
    private String projectId;

    @ApiModelProperty(value = "发送人")
    private String sender;

    @ApiModelProperty(value = "发送内容", required = true)
    private String content;

    @ApiModelProperty(value = "创建日期", hidden = true)
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建者", hidden = true)
    private String createBy;

    @ApiModelProperty(value = "短信数")
    private Integer msgNum;

    @ApiModelProperty(value = "短信消耗总量")
    private Integer msgTotal;
}
